import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from "./store";

import toast from 'components/common/toast'

import fastclick from 'fastclick'
import VueLazyload from "vue-lazyload";


Vue.config.productionTip = false

//事件总线
Vue.prototype.$bus = new Vue()

//安装toast插件
Vue.use(toast)

//解决移动端300ms延迟
fastclick.attach(document.body)

//使用懒加载图片的插件
Vue.use(VueLazyload, {
  //加载时代替显示的图片
  loading: require('./assets/img/common/placeimg.jpg')
})


new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
